
class Circle {
	double radius;
	
	public double findArea(){
		return Math.PI*radius*radius;
		
	}
 public void setRadius(double r){
	 radius =r;
	 
 }
	public double getRadius(){
		return radius;
	}
}

public class PassObject {
	public void printAreas(Circle c, int time){
		System.out.println("radius"+"\t\t"+"Area");
		for(int i=0;i<=time;i++){
			c.setRadius(i);
			System.out.println(c.getRadius()+"\t\t"+c.findArea());
		}
		
	}
public static void main(String [] args){
	PassObject p =new PassObject();
	Circle c =new Circle();
	p.printAreas(c, 5);
	System.out.println("now radius is "+c.getRadius());
	
}
}
